
import com.google.code.opengw.server.DataStore;
import com.google.code.opengw.server.Server;
import com.google.code.opengw.server.domain.Domain;
import com.google.code.opengw.server.initializer.SystemInitializer;
import com.google.code.opengw.support.OpenGWLogger;




public class MainClass {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try{
			
			for(String arg : args)
				System.out.println(arg);
			
			SystemInitializer initiator = SystemInitializer.getInstance();
			initiator.initialize();
			Server server = Server.getInstance();
			DataStore dataStore = DataStore.getInstance();
			
			
//			System.out.println(server.getConnectionTimeout());
//			
//			System.out.println(server.getWorkerIncreasementCount());
//			
//			
//			System.out.println(server.getDomain("domain1").getPort());
//			
//
//			System.out.println(dataStore.getPolicyUser("username2").getUserRoles());
//			
//			Domain domain = server.getDomain("domain1");
//			
//			System.out.println(domain.getPublish("Deneme-Publish").getRouteList()[0].getRouteURL()); 
		

			

			
			server.startServer();

			
		} catch (Exception e) {
			e.printStackTrace();
			System.exit(1);
		}
	}

}
